package com.boardgame.gwt.service.operate.action;

import com.boardgame.common.entity.ResponseInfo;
import com.boardgame.gwt.data.GwtGameBoard;
import com.boardgame.gwt.finalinfo.SyntaxMatchFinal;
import com.boardgame.gwt.service.operate.SyntaxBaseAction;
import com.boardgame.gwt.service.operate.SyntaxRequest;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 拿取任务卡
 */
public class TakeOtcAction extends SyntaxBaseAction {
    @Override
    public Pattern getPattern() {
        return Pattern.compile(SyntaxMatchFinal.BUY_TAKE_OTC_ACTION);
    }

    @Override
    public ResponseInfo action(GwtGameBoard gwtGameBoard, SyntaxRequest syntaxRequest, Matcher matcher) {
        return super.action(gwtGameBoard, syntaxRequest, matcher);
    }

    public static TakeOtcAction create(){
        return new TakeOtcAction();
    }

}
